package fat3kb.everything;

import fat3kb.everything.dao.hibernate.DishDAO;
import fat3kb.everything.spring.SpringUtil;

public class Starter {

	static int x = go();

	public static void main(String[] args) {
		DishDAO dao = (DishDAO) SpringUtil.getBean("dishDAO");
/*
		Dish dish = dao.getDish("402881b81580613f01158061408c0001");
		System.out.println(dish.getName());
		dish = new Dish("fuck", 20, 6000f);
		dao.save(dish);
		System.out.println(dish.getName());
*/
        //Hi from home
        dao.printAll();
	}

	static int go(){
		System.out.println(1024 * 1024);
		return 6;
	}
}
